package com.example.szh.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.example.szh.R;
import com.example.szh.entity.LiveEntity;
import com.example.szh.utils.LoadImage;

public class LiveAdapter extends BaseQuickAdapter<LiveEntity.Values, BaseViewHolder> {
    public LiveAdapter(int layoutResId) {
        super(R.layout.item_live);
    }

    @Override
    protected void convert(BaseViewHolder helper, LiveEntity.Values item) {
        helper.setText(R.id.live_item_title, item.live_title);
        LoadImage.loadMatchImg(item.live_img, helper.getView(R.id.live_item_img));
    }
}
